﻿<phone:PhoneApplicationPage 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
	x:Class="Yelper_Phone.NewYelp"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	Orientation="Portrait"
    SupportedOrientations="PortraitOrLandscape"
	shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded">

	<!--LayoutRoot is the root grid where all page content is placed-->
	
	
	<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" BackgroundColor="{StaticResource ApplicationBarBackgroundColor}" ForegroundColor="{StaticResource ApplicationBarForegroundColor}">
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.edit.rest.png" Text="Yelp" Click="ApplicationBarIconButton_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
	<!--LayoutRoot is the root grid where all page content is placed-->
	<Grid x:Name="LayoutRoot" Background="Transparent">

		<!--ContentPanel - place additional content here-->
		<Grid x:Name="ContentPanel" Margin="12,2,12,-2">
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>
			<Grid x:Name="HeaderGrid" Margin="0,10,0,0" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment, VerticalMargin">
				<TextBlock FontWeight="Bold" FontSize="24" VerticalAlignment="Top" Grid.Column="1" Text="{Binding Username,Converter={StaticResource ToUpperConverter}}"/>
			</Grid>
			<TextBox x:Name="TextBoxYelp" TextWrapping="Wrap" d:LayoutOverrides="GridBox" Grid.Row="1" VerticalAlignment="Top" Height="230" MaxLength="141" BorderBrush="{x:Null}">
				<TextBox.Resources>
					<ControlTemplate x:Key="PhoneDisabledTextBoxTemplate" TargetType="TextBox">
						<ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
					</ControlTemplate>
					<Style x:Key="TextBoxStyle1" TargetType="TextBox">
						<Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
						<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/>
						<Setter Property="Background" Value="{StaticResource PhoneTextBoxBrush}"/>
						<Setter Property="Foreground" Value="{StaticResource PhoneTextBoxForegroundBrush}"/>
						<Setter Property="BorderBrush" Value="{StaticResource PhoneTextBoxBrush}"/>
						<Setter Property="SelectionBackground" Value="{StaticResource PhoneAccentBrush}"/>
						<Setter Property="SelectionForeground" Value="{StaticResource PhoneTextBoxSelectionForegroundBrush}"/>
						<Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
						<Setter Property="Padding" Value="2"/>
						<Setter Property="Template">
							<Setter.Value>
								<ControlTemplate TargetType="TextBox">
									<Grid Background="{x:Null}">																																														
										<Border x:Name="EnabledBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="{StaticResource PhoneTouchTargetOverhang}">
											<ContentControl x:Name="ContentElement" BorderThickness="0" HorizontalContentAlignment="Stretch" Margin="{StaticResource PhoneTextBoxInnerMargin}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="Stretch"/>
										</Border>
										<Border x:Name="DisabledOrReadonlyBorder" BorderBrush="{StaticResource PhoneDisabledBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" Margin="{StaticResource PhoneTouchTargetOverhang}" Visibility="Collapsed">
											<TextBox x:Name="DisabledOrReadonlyContent" Background="Transparent" Foreground="{StaticResource PhoneDisabledBrush}" FontWeight="{TemplateBinding FontWeight}" FontStyle="{TemplateBinding FontStyle}" FontSize="{TemplateBinding FontSize}" FontFamily="{TemplateBinding FontFamily}" IsReadOnly="True" SelectionForeground="{TemplateBinding SelectionForeground}" SelectionBackground="{TemplateBinding SelectionBackground}" TextAlignment="{TemplateBinding TextAlignment}" TextWrapping="{TemplateBinding TextWrapping}" Text="{TemplateBinding Text}" Template="{StaticResource PhoneDisabledTextBoxTemplate}"/>
										</Border>
									</Grid>
								</ControlTemplate>
							</Setter.Value>
						</Setter>
					</Style>
				</TextBox.Resources>
				<TextBox.CaretBrush>
					<StaticResource ResourceKey="PhoneForegroundBrush"/>
				</TextBox.CaretBrush>
				<TextBox.Background>
					<StaticResource ResourceKey="PhoneBackgroundBrush"/>
				</TextBox.Background>
				<TextBox.Foreground>
					<StaticResource ResourceKey="PhoneForegroundBrush"/>
				</TextBox.Foreground>
				<TextBox.SelectionBackground>
					<StaticResource ResourceKey="PhoneBackgroundBrush"/>
				</TextBox.SelectionBackground>
				<TextBox.SelectionForeground>
					<StaticResource ResourceKey="PhoneForegroundBrush"/>
				</TextBox.SelectionForeground>
				<TextBox.Style>
					<StaticResource ResourceKey="TextBoxStyle1"/>
				</TextBox.Style>
			</TextBox>
		</Grid>
	</Grid>
	
	
</phone:PhoneApplicationPage>